feat(sdk): publish AIFlow headless runtime compatibility line#1
Open
zhexuany wants to merge 11 commits into
Open
feat(sdk): publish AIFlow headless runtime compatibility line#1zhexuany wants to merge 11 commits into
zhexuany wants to merge 11 commits into
Conversation
Expose a lifecycle for host-owned auth managers that reuses native executor and model registration without constructing the HTTP server or file watcher. Support targeted auth synchronization, active-model reconciliation, and cleanup of runtime-owned projections.\n\nVerified with focused SDK tests, race tests, the server build, and go test ./....
Preserve host-owned executors and transports, make executor ownership atomic, roll back canceled starts, avoid persistence and hooks during runtime-only reconciliation, and prevent model projection without an executable provider.
Add scoped auto-refresh leases so EmbeddedRuntime can start and drain refresh workers without stopping host-owned loops or selectors.
Add a headless resolved-execution facade that accepts host-authorized credential candidates and delegates transport, translation, retry, cooldown, and streaming behavior to CLIProxyAPI native executors and Manager semantics. Treat provider 400/422 responses as request-scoped so client errors do not rotate credentials or poison account health.\n\nValidated SDK/auth tests, race tests, and go vet.
Preserve host auth identity and transport policy while executing request-local provider candidates. Carry interceptor metadata safely, suppress duplicate usage publication, fence resolved executions during shutdown, and cover retry, streaming, and mutation isolation behavior.
Make embedded resolved streams cancelable during runtime shutdown, isolate nested interceptor metadata, and apply usage suppression at the manager boundary. Normalize requested model names in native translator responses so host-resolved physical models do not leak through OpenAI, Claude, or Codex protocols.
Route event-prefixed and Claude same-format SSE frames through canonical model normalization, deepen interceptor metadata isolation across typed containers, and make Antigravity test cleanup concurrency-safe so the full executor race suite is reliable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes the reviewed AIFlow headless embedded-runtime compatibility series onto the fork default branch.
Validation: full CLIProxyAPI test suite, focused race suite, go vet, and git diff --check.